home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / john / hc_showd.hqx / ShowDialog XCMD 1.4 / card_12500.txt < prev    next >
Encoding:
Text File  |  1989-08-30  |  1.9 KB  |  83 lines

  1. -- card: 12500 from stack: in.4
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2607
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A003
  11. -- rect: left=179 top=201 right=223 bottom=323
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Another Type 5 Help
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   ShowDialog 5,4780,50
  23. end mouseUp
  24.  
  25. -- 5 is the type
  26. -- 4780 is the DLOG resource ID
  27. -- 50 displays PICT resource 1050
  28. -- 9 would have displayed PICT 1009
  29. -- 8 would have displayed PICT 1008, etc.
  30.  
  31. -- The PICT 1050 has no button associated with it and thus will be
  32. -- shown ONLY when the dialog is initially displayed.
  33.  
  34.  
  35. -- part 2 (button)
  36. -- low flags: 00
  37. -- high flags: A003
  38. -- rect: left=203 top=246 right=268 bottom=303
  39. -- title width / last selected line: 0
  40. -- icon id / first selected line: 0 / 0
  41. -- text alignment: 1
  42. -- font id: 0
  43. -- text size: 12
  44. -- style flags: 0
  45. -- line height: 16
  46. -- part name: Splash Screen
  47. ----- HyperTalk script -----
  48. on mouseUp
  49.   lock screen
  50.   unlock screen with zoom out
  51.   ShowDialog 5,4747,40
  52. end mouseUp
  53.  
  54. -- 5 is the type
  55. -- 4747 is the DLOG resource ID
  56. -- 10 displays PICT resource 1010
  57. -- 9 would have displayed PICT 1009
  58. -- 8 would have displayed PICT 1008, etc.
  59.  
  60.  
  61. -- part contents for background part 2
  62. ----- text -----
  63. Variations on Type 5 of ShowDialog XCMD
  64.  
  65. -- part contents for background part 3
  66. ----- text -----
  67. ShowDialog XCMD Type 5 (continued...)
  68.  
  69. -- part contents for background part 1
  70. ----- text -----
  71.  
  72.  
  73. Type 5 of ShowDialog can be used to create some rather flashy dialogs.
  74.  
  75. The "buttons" that display PICTs need not be buttons at all.  They can be "hot spots" that can be placed anywhere on the dialog.
  76.  
  77. The following two examples are illustrations:
  78.  
  79.  
  80.  
  81. -- part contents for background part 7
  82. ----- text -----
  83. 26